home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Lib / io / wr_q.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  1.0 KB  |  50 lines

  1. /* wr_q.c: write out a queue structure to a Control File in Q/ADDR */
  2.  
  3. # ifndef lint
  4. static char Rcsid[] = "@(#)$Header: /xtel/pp/pp-beta/Lib/io/RCS/wr_q.c,v 6.0 1991/12/18 20:22:26 jpo Rel $";
  5. # endif
  6.  
  7. /*
  8.  * $Header: /xtel/pp/pp-beta/Lib/io/RCS/wr_q.c,v 6.0 1991/12/18 20:22:26 jpo Rel $
  9.  *
  10.  * $Log: wr_q.c,v $
  11.  * Revision 6.0  1991/12/18  20:22:26  jpo
  12.  * Release 6.0
  13.  *
  14.  */
  15.  
  16.  
  17.  
  18. /* __________________________________________________________________________
  19.  
  20. This routine is used so that there is only one entry point to q2txt()
  21. which is located in Lib/pp/tx_q.c
  22.  
  23. ____________________________________________________________________________*/
  24.  
  25.  
  26.  
  27. #include "head.h"
  28. #include "q.h"
  29.  
  30.  
  31.  
  32.  
  33. /* ---------------------  Begin  Routines  -------------------------------- */
  34.  
  35.  
  36.  
  37. int wr_q (qp, fp)
  38. register Q_struct       *qp;
  39. FILE                    *fp;
  40. {
  41.     int             retval;
  42.  
  43.     PP_DBG (("Lib/wr_q (type=%d, size=%d)", qp->msgtype, qp->msgsize));
  44.  
  45.     retval = q2txt (fp, qp);
  46.     if (retval == NOTOK)
  47.         return (RP_FIO);
  48.     return (RP_OK);
  49. }
  50.